package dryven.view.components;

import java.io.Writer;

import dryven.view.ViewDataDictionary;
import dryven.view.engine.component.MultiThreadViewComponent;
import dryven.view.engine.component.ViewComponent;
import dryven.view.engine.component.annotations.ComponentAttribute;
import dryven.view.engine.component.childzone.ChildZoneBindings;
import dryven.view.engine.component.childzone.ChildZoneCallback;

public class Header extends MultiThreadViewComponent {

	public void renderComponent(ViewDataDictionary localViewData, Writer out,
			ChildZoneBindings childZones, @ComponentAttribute(value="title",required=false) String title) {
		ChildZoneCallback childZone = childZones.getChildZoneCallback(ViewComponent.DefaultChildZone);
		childZone.render(localViewData, out);
	}

	

}
